package com.itheima.jdk8date;

import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;

public class Demo01 {

    public static void main(String[] args) {
        String s="1998-11-01 10:11:22";
        LocalDateTime date = LocalDateTime.parse(s,DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"));
        LocalDateTime date1 = date.minusDays(3);
        System.out.println(date1);


    }
}
